var initialState={
    product:[],
}

function product(state=initialState,action){
    switch(action.type){
        case "GETPRODUCT":
            return Object.assign({},state,{product:action.data});
        default:
            return state;
    }
}

export default product;